<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body style="background-color: bisque">
<canvas id="my_canvas"></canvas>
<script src="js/barrage.js"></script>
<script>
    var barrage = Barrage.init({
        canvasId: "my_canvas"
//        width : 1200,
//        height : 720,
//        bgcolor : "#000",
//        font : {size : 30,color : "#fff",family : "黑体"}
    });


    setInterval(function () {
        barrage.send({text: "这是一条弹幕"});
        barrage.send({text: "这是一条弹幕"});
        barrage.send({text: "这是一条弹幕"});
        barrage.send({text: "这是一条弹幕"});
        barrage.send({text: "这是一条弹幕"});
        barrage.send({text: "这是一条弹幕"});
        barrage.send({text: "这是一条弹幕"});
    }, 1000);

</script>
</body>
</html>